package com.ayun.exception;

import org.springframework.validation.FieldError;

import java.util.List;

public class InvalidArgument extends Exception {
    private List<FieldError> errors;

    public InvalidArgument(List<FieldError> errors) {
        super();
        this.errors = errors;
    }

    public List<FieldError> getErrors() {
        return errors;
    }
}
